package com.example.armmvvm

data class Data(
    var funcCode : String = "",     // 相当于id
    var funcName : String = "",
    var funcIconCss : String = "",  // 图片
    var funcType : String = "func",  // func：功能(我们需要的) button：按钮(我们不需要的)
    var isSubscribe : String? = "",  // 是否被订阅
    var subscribeId : String? = "",  // 订阅id,用来取消订阅的
){
    fun isFuncSubscribe(): Boolean {
        return isSubscribe == "1"
    }

    fun isFunc(): Boolean {
        return funcType == "func"
    }
}

data class Bussniss(
    var disabled : Boolean = false,
    var targetClass : Class<*>? = null,
    var data : Data = Data(),
    var children : ArrayList<Bussniss> = ArrayList()
)